package com.zhima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhima.entity.OjContest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhima
 * @since 2024-01-18
 */
@Mapper
public interface OjContestMapper extends BaseMapper<OjContest> {

    boolean increaseApplyNumber(@Param("contestId") Long contestId);

    boolean updateQuestionNum(@Param("contestId") Long contestId, @Param("increase") boolean increase);
}
